﻿using SqlSugar;
using System;

namespace ECO.Admin.Core.EntityCore
{
    /// <summary>
    /// 实体基抽象类，内置了 Id
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class EntityBase<T> : IEntity
    {
        /// <summary>
        /// 主键id
        /// </summary>
        /// 
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public virtual T Id { get; set; }

    }
}
